package com.ruoyi.system.service.impl;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.cdRecordMapper;
import com.ruoyi.system.domain.cdRecord;
import com.ruoyi.system.service.IcdRecordService;

/**
 * 充电分析Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-08
 */
@Service
public class cdRecordServiceImpl implements IcdRecordService
{
    @Autowired
    private cdRecordMapper cdRecordMapper;

    /**
     * 查询充电分析
     * 
     * @param recordId 充电分析主键
     * @return 充电分析
     */
    @Override
    public cdRecord selectcdRecordByRecordId(Integer recordId)
    {
        return cdRecordMapper.selectcdRecordByRecordId(recordId);
    }

    /**
     * 查询充电分析列表
     * 
//     * @param cdRecord 充电分析
     * @return 充电分析
     */
    @Override
    public List<Map<String, Object>> selectcdRecordList(@Param("scharging_date") String scharging_date,@Param("csName") String csName)
    {
        return cdRecordMapper.selectcdRecordList(scharging_date,csName);
    }

    /**
     * 新增充电分析
     * 
     * @param cdRecord 充电分析
     * @return 结果
     */
    @Override
    public int insertcdRecord(cdRecord cdRecord)
    {
        return cdRecordMapper.insertcdRecord(cdRecord);
    }

    /**
     * 修改充电分析
     * 
     * @param cdRecord 充电分析
     * @return 结果
     */
    @Override
    public int updatecdRecord(cdRecord cdRecord)
    {
        return cdRecordMapper.updatecdRecord(cdRecord);
    }

    /**
     * 批量删除充电分析
     * 
     * @param recordIds 需要删除的充电分析主键
     * @return 结果
     */
    @Override
    public int deletecdRecordByRecordIds(Integer[] recordIds)
    {
        return cdRecordMapper.deletecdRecordByRecordIds(recordIds);
    }

    /**
     * 删除充电分析信息
     * 
     * @param recordId 充电分析主键
     * @return 结果
     */
    @Override
    public int deletecdRecordByRecordId(Integer recordId)
    {
        return cdRecordMapper.deletecdRecordByRecordId(recordId);
    }
}
